const warn = (msg, getValue) => {
    console.warn(msg);
    console.log('接受到的值为：', getValue);
};
var app = getApp();
Component({
    externalClasses: ['my-class'],

    options: {
        multipleSlots: true
    },
    lifetimes: {
     
    },
   
    properties: {
        // 左侧标题
        tasks: {
          type: Object,
          value: [],
          observer: function (newVal, oldVal) {
            let newdata = app.processImg(newVal);
            this.setData({
              tasks: newdata
            });
          }
        },
        pagetype: {
          type: String,
          value: 'indexpage',
        }
    },

    methods: {
      goto(e) {
        console.log(this.data.tasks)
        let task_id = e.currentTarget.dataset.task_id;
        wx.navigateTo({
          url: '/pages/task/detail?task_id=' + task_id
        });
      }
    }
});
